import { WeaTools } from 'ecCom'

//查询
export const doSearch = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/dispatchset/getData', 'GET', params);
};

// 高级搜索
export const getConditionInfo = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/dispatchset/condition', 'GET', params);
};

//页面右键
export const getRightMenu = (params) => {
    return WeaTools.callApi('/api/customization/qc574527/dispatchset/rightMenu', 'GET', params);
};

//根据传入的弹出框类型获取对应的按钮和字段
export const getchooseDialogCon = (params) => {
    return WeaTools.callApi('/api/customization/qc574527/dispatchset/chooseDialog', 'post', params);
};

//获取规则明细列表
export const getRuleDetailList = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/dispatchset/getRuleDetailList', 'GET', params);
};

//保存dialog信息
export const saveDialog1 = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/dispatchset/saveDialog1', 'GET', params);
}

//删除规则或者规则明细数据
export const deleteRule = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/dispatchset/deleteRule', 'GET', params);
}

